<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>articleManger</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.3.3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.3.3/themes/icon.css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.3.3/jquery.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>

<script type="text/javascript"
	src="${pageContext.request.contextPath}/ueditor/ueditor.config.js">
</script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/ueditor/ueditor.all.js">
</script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/common.js"></script>

</head>
<body style="margin: 1px;" id="ff">
	<form id="fm" method="post">
		<table cellspacing="8px">
			<tr>
				<td>详细内容</td>
				<td id="container"></td>
			</tr>
		</table>
	</form>
	<div id="dlg-buttons">
		<a href="javascript:saveArticle()" class="easyui-linkbutton"
			iconCls="icon-ok">保存</a> <a href="javascript:closeArticleDialog()"
			class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
	</div>


	<script type="text/javascript">
		var ue = UE.getEditor('container', {
			autoHeightEnabled : true,
			autoFloatEnabled : true
		});
		ue.ready(function() {
			//设置编辑器的内容
			ue.setContent('hello');
			//获取html内容，返回: <p>hello</p>
			var html = ue.getContent();
			//获取纯文本内容，返回: hello
			var txt = ue.getContentTxt();
		});
	</script>
</body>
</html>